package com.deyuanyun.pic.docmger.service;

import com.deyuanyun.pic.docmger.controller.dto.DocPipelineDTO;
import com.deyuanyun.pic.docmger.controller.dto.DocPipelineQueryVO;
import com.deyuanyun.pic.docmger.domain.DocPipeline;

import java.util.List;

/**
 *  文档中心---管道相关service
 *  @author axiao(xj08.dream@gmail.com)
 *  @date 2016-11-14
 *  @version 1.0
 *  Histroy: [修改人][时间][描述]
 */
public interface DocPipelineService {


    public DocPipelineDTO selectByIdType(String id, String type);

    /**
     * 根据条件查询管道相关文档信息
     * @param queryVO
     * @return
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-11-14
     */
    List<DocPipelineDTO> queryPipelineInfo(DocPipelineQueryVO queryVO);

    /**
     * 逻辑删除管道相关文档信息和附件信息
     * @param id 技术标准id
     * @return
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-11-14
     */
    void deletePipelineInfo(String id);

    /**
     * 根据id更新管道相关文档信息
     * @param docPipeline
     * @param attachmentId 附件id
     * @return
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-11-14
     */
    void updatePipelineInfo(DocPipeline docPipeline, String attachmentId);

    /**
     * 新增管道相关文档信息并关联附件
     * @param docPipeline
     * @param attachmentId 附件id
     * @return
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-11-14
     */
    void addPipelineInfo(DocPipeline docPipeline, String attachmentId);
}
